import os
import shutil
import random 



def find_victim(universe):
    path_domain=os.listdir(universe)
    for i in range(len(path_domain)):
        path_domain[i]=universe+'/'+path_domain[i]
    return path_domain

def find_lucky(victim):   
    random.shuffle(victim)
    return victim

def Thanos_snap(lucky):                          #Snap it!!!For death queen!!!
    for i in range(int(len(lucky)/2)):
        shutil.rmtree(lucky[i]) 

def main():
    universe='D:/snap_test'                      #想要在哪打响指？
    victim=find_victim(universe)
    lucky=find_lucky(victim)
    Thanos_snap(lucky)

if __name__ == '__main__':
    main()  
    